package com.yugao.fintech.antelope.infra.weixin.mp.controller;

import com.yugao.fintech.antelope.infra.common.ScanScene;
import com.yugao.fintech.antelope.infra.weixin.mp.handler.WxMpHandler;
import com.yugao.fintech.framework.core.response.Resp;
import io.swagger.annotations.Api;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "公众号二维码")
@RestController
@RequestMapping("/mpQrcode")
public class MpQrcodeController {
    @Autowired
    private WxMpHandler mpProcess;

    @PostMapping("/getQrcode")
    public Resp<String> getQrcode(@RequestBody @Validated ScanScene req) {
        return Resp.ok(mpProcess.getQrcode(req));
    }
}
